package com.ruoyi.project.module.api.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.module.api.common.utils.ApiResult;
import com.ruoyi.project.module.api.service.ApiFeesetService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/feeset")
@Api("套餐接口")
public class AppFeesetController extends BaseController {

    @Autowired
    private ApiFeesetService feesetService;

    @GetMapping("/list")
    @ResponseBody
    @ApiOperation("套餐查询列表")
    public ApiResult list() {
        return ApiResult.ok(feesetService.getFeeset());
    }

}
